const MovieRoles = [{
  id: 1,
  name: '张三',
  gender: '男',
  crossGender: '可'
}, {
  id: 2,
  name: '李四',
  gender: '女',
  crossGender: '不可'
}, {
  id: 3,
  name: '王五',
  gender: '女',
  crossGender: '可'
}]

const MovieRoles2 = [{
  id: 1,
  name: '张三',
  gender: '男',
  crossGender: '可'
}, {
  id: 2,
  name: '李四',
  gender: '女',
  crossGender: '不可'
}, {
  id: 3,
  name: '王五',
  gender: '女',
  crossGender: '可'
}, {
  id: 4,
  name: '朱六',
  gender: '男',
  crossGender: '不可'
}, {
  id: 5,
  name: '吴七',
  gender: '男',
  crossGender: '不可'
}, {
  id: 6,
  name: '周八',
  gender: '男',
  crossGender: '不可'
}]

function findMovieRoles(movieId, version) {
  if (movieId == null) {
    return []
  }
  if (movieId % 2 === 0) {
    return MovieRoles
  } else {
    return MovieRoles2
  }
}

module.exports = { findMovieRoles }
